<?php
/*sink_cup
2009-4-16 21:08:03 UTC+8
*/
$user_lang=strtolower($_SERVER["HTTP_ACCEPT_LANGUAGE"]);
$default_lang_language=substr($user_lang,0,2);
$default_lang_region=substr($user_lang,3,2);
if($default_lang_language=='zh')
{	$my_lang='zh-cn';
	if($default_lang_region=='tw')
		$my_lang='zh-tw';
}
else
	$my_lang='en';
include "./language/$my_lang/index.php";
include './themes/default/form_language.tpl.php';
$language_selected=str_replace($my_lang,$my_lang.'"'.' selected="selected',$language_selected);
include './themes/default/index.tpl';
?>